<div class="box"> <!-- Box begins here -->
	<h2>Cấu hình email</h2>
	<!--
	Standard form within a fieldset tag;
	-->
	<?php
		$header_info = $this->header_info;
		$server_info = $this->server_info;
		
	?>
	<form method="post" action="" enctype="multipart/form-data">
	<!-- Form -->
		<?php 
			if(isset($this->success)){
				echo "<div class='success'><center><h3>".$this->success."</h3></center></div>";					
			}
		?>
		<fieldset><legend>Thông Tin Email Server</legend>
			<div class="input_field">
				<label for="smtp">Smtp Server</label>										
 						<?php echo $this->formText("smtp",$server_info->smtp,null); ?>
			</div>
			<div class="input_field">
				<label for="auth">Auth</label>										
 					<?php echo $this->formText("auth",$server_info->auth,null); ?>
			</div>
			<div class="input_field">
				<label for="port">Port</label>										
 					<?php echo $this->formText("port",$server_info->port,null); ?>
			</div>
			<div class="input_field">
				<label for="ssl">Ssl</label>										
 					<?php echo $this->formText("ssl",$server_info->ssl,null); ?>
			</div>
			<div class="input_field">
				<label for="username">Username</label>										
 					<?php echo $this->formText("username",$server_info->username,null); ?>
			</div>
			<div class="input_field">
				<label for="password">Password</label>										
 					<?php echo $this->formPassword("password",$server_info->password,null); ?>
			</div>
		</fieldset>
		<fieldset><legend>Thông Tin Header Email</legend>
			<div class="input_field">
				<label for="to">To User</label>										
 						<?php echo $this->formText("to",$header_info->to,null); ?>
			</div>
			<div class="input_field">
				<label for="cc">Cc User</label>										
 						<?php echo $this->formText("cc",$header_info->cc,null); ?>
			</div>
			<div class="input_field">
				<label for="from">From User</label>										
 						<?php echo $this->formText("from",$header_info->from,null); ?>
			</div>
		</fieldset>
		<input class="submit" type="submit" value="Lưu" />
	</form><!-- /Form -->
</div> <!-- END Box-->